package com.yf.dao.article;

import com.yf.dao.BaseDao;
import com.yf.entity.PlayerEntity;
import com.yf.vo.PlayerVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 参与者Dao
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Wed Aug 22 15:16:26 CST 2018
 */
public interface PlayerDao extends BaseDao<PlayerEntity> {
    //获取某个参赛者的排名
    Integer ranking(@Param("playerId")Long playerId, @Param("campaignId")Long campaignId);

    //获取参赛者列表
    List<PlayerVo>getPlayerList(Long campaignId);
}
